<f:view xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions"
        xmlns:g="http://code.google.com/p/ada-ado/generator"
        xmlns:f="http://java.sun.com/jsf/core"
        file="src/#{projectName}-#{moduleName}-module.adb">-----------------------------------------------------------------------
--  #{projectName}-#{moduleName}-module -- Module #{moduleName}
<ui:include src="../licenses/license-ada.xhtml"/>
-----------------------------------------------------------------------
#{''}
with AWA.Modules.Beans;
with AWA.Modules.Get;
with Util.Log.loggers;
with #{fn:capitalize(projectName)}.#{fn:capitalize(moduleName)}.Beans;
package body #{fn:capitalize(projectName)}.#{fn:capitalize(moduleName)}.Module is
#{''}
   Log : constant Util.log.Loggers.Logger := Util.Log.Loggers.Create ("#{fn:capitalize(projectName)}.#{fn:capitalize(moduleName)}.Module");
#{''}
   package Register is new AWA.Modules.Beans (Module => #{fn:capitalize(moduleName)}_Module,
                                              Module_Access => #{fn:capitalize(moduleName)}_Module_Access);
#{''}
   --  ------------------------------
   --  Initialize the #{moduleName} module.
   --  ------------------------------
   overriding
   procedure Initialize (Plugin : in out #{fn:capitalize(moduleName)}_Module;
                         App    : in AWA.Modules.Application_Access) is
   begin
      Log.Info ("Initializing the #{moduleName} module");
#{''}
      --  Register here any bean class, servlet, filter.
      Register.Register (Plugin => Plugin,
                         Name   => "#{fn:capitalize(projectName)}.#{fn:capitalize(moduleName)}.Beans.#{fn:capitalize(moduleName)}_Bean",
                         Handler => #{fn:capitalize(projectName)}.#{fn:capitalize(moduleName)}.Beans.Create_#{fn:capitalize(moduleName)}_Bean'Access);
#{''}
      AWA.Modules.Module (Plugin).Initialize (App);
#{''}
      --  Add here the creation of manager instances.
   end Initialize;
#{''}
end #{fn:capitalize(projectName)}.#{fn:capitalize(moduleName)}.Module;
</f:view>
